import request from '@/sheep/request';

export function pageList(data) {
	return request({
		url: '/crm/customer/page',
		method: 'get',
		data: data
	})
}
// 获取客户信息
export function createCustomer(data) {
	return request({
		url: '/crm/customer/create',
		method: 'post',
		data: data
	})
}
// 获取客户信息
export function updateCustomer(data) {
	return request({
		url: '/crm/customer/update',
		method: 'PUT',
		data: data
	})
}
// 获取客户信息
export function getCustomer(id) {
	return request({
		url: '/crm/customer/get?id=' + id,
		method: 'get'
	})
}
// 删除客户信息
export function deleteCustomer(id) {
	return request({
		url: '/crm/customer/delete?id=' + id,
		method: 'delete'
	})
}
 